﻿using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using System;

namespace H2.NET.Web.Pages.SMD.Model
{
    /* 
     * 字段：Category
     * 
     * 门店
     * BatchChangeStore
     * ChangeStore
     * DegradeStore
     * ChangeDealer
     * 
     * 设备
     * BatchChangeDevice
     * ChangeDevice
     * DiscardDevice
     * ChangeDevice
     * 
     * 合同
     * BatchChangeContract
     * BatchChangeContractDevice
     * ChangeStoreContract
     * ChangeDeviceContract
     */
    [Table]
    [Serializable]
    public class t_StoreDataChangeLog : DataObject
    {
        [ID]
        [Column]
        [IDENTITY]
        public int LogID { get { return fLOGID; } set { fLOGID = value; EntityState.FieldChange("LogID"); } } private int fLOGID; public static FieldInfo _LogID = new FieldInfo("t_StoreDataChangeLog", "LogID");
        [Column]
        public string Category { get { return fCATEGORY; } set { fCATEGORY = value; EntityState.FieldChange("Category"); } } private string fCATEGORY; public static FieldInfo _Category = new FieldInfo("t_StoreDataChangeLog", "Category");
        [Column]
        public string DataID { get { return fDATAID; } set { fDATAID = value; EntityState.FieldChange("DataID"); } } private string fDATAID; public static FieldInfo _DataID = new FieldInfo("t_StoreDataChangeLog", "DataID");
        [Column]
        public string FieldName { get { return fFIELDNAME; } set { fFIELDNAME = value; EntityState.FieldChange("FieldName"); } } private string fFIELDNAME; public static FieldInfo _FieldName = new FieldInfo("t_StoreDataChangeLog", "FieldName");
        [Column]
        public string ChangeReason { get { return fCHANGEREASON; } set { fCHANGEREASON = value; EntityState.FieldChange("ChangeReason"); } } private string fCHANGEREASON; public static FieldInfo _ChangeReason = new FieldInfo("t_StoreDataChangeLog", "ChangeReason");
        [Column]
        public string BeforeValue { get { return fBEFOREVALUE; } set { fBEFOREVALUE = value; EntityState.FieldChange("BeforeValue"); } } private string fBEFOREVALUE; public static FieldInfo _BeforeValue = new FieldInfo("t_StoreDataChangeLog", "BeforeValue");
        [Column]
        public string AfterValue { get { return fAFTERVALUE; } set { fAFTERVALUE = value; EntityState.FieldChange("AfterValue"); } } private string fAFTERVALUE; public static FieldInfo _AfterValue = new FieldInfo("t_StoreDataChangeLog", "AfterValue");
        [Column]
        public DateTime ChangeTime { get { return fCHANGETIME; } set { fCHANGETIME = value; EntityState.FieldChange("ChangeTime"); } } private DateTime fCHANGETIME; public static FieldInfo _ChangeTime = new FieldInfo("t_StoreDataChangeLog", "ChangeTime");
        [Column]
        public string UserID { get { return fUSERID; } set { fUSERID = value; EntityState.FieldChange("UserID"); } } private string fUSERID; public static FieldInfo _UserID = new FieldInfo("t_StoreDataChangeLog", "UserID");
        [Column]
        public string AssessmentID { get { return fASSESSMENTID; } set { fASSESSMENTID = value; EntityState.FieldChange("AssessmentID"); } } private string fASSESSMENTID; public static FieldInfo _AssessmentID = new FieldInfo("t_StoreDataChangeLog", "AssessmentID");
    }
}